*Replication - FB Profiles

use "/Users/nathankalmoe/Dropbox/Research/A Publishing/Finished/PoP - Facebook Protests/FB Profiles/FB Profiles by Comment - anonymized.dta", replace
set more off

gen unique=dup
recode unique 0 1=1 else=0

recode deact .=0
recode married 3=.
replace br=1 if lives==1|lives==2|from==1|from==2

gen la=0
recode la 0=1 if br==1|lives==3|from==3

*Unique Commenters * if unique==1 
tab deact if unique==1 , miss 
tab lives if unique==1 , miss
tab from if unique==1 , miss

tab lives from if unique==1, miss cell

tab married if unique==1 , miss

replace age=2016-birth if age==.

tab sex if unique==1 , miss
tab race if unique==1 , miss
tab sex race if unique==1, cell miss

tab age if unique==1 , miss
tab college if unique==1 , miss

tab politics if unique==1 , miss

tab religion if unique==1 , miss
tab activist if unique==1 , miss

tab br if unique==1 , miss
tab la if unique==1 , miss

tab lives if unique==1 & lives~=.

tab br if unique==1 & (lives~=.|from~=.), miss
tab la if unique==1 & (lives~=.|from~=.), miss

tab br if unique==1 & (lives~=. & from~=.), miss
tab la if unique==1 & (lives~=. & from~=.), miss

tab br if unique==1 & (lives~=.), miss
tab la if unique==1 & (lives~=.), miss

*PoP - Table 1 - LA includes BR, which is necessary for Census comparisons
tab race if unique==1 , miss
tab sex if unique==1 , miss
tab age if unique==1 , miss

*By geography
tab race if unique==1 & br==1, miss
tab race if unique==1 & la==1, miss

tab sex if unique==1 & br==1, miss
tab sex if unique==1 & la==1, miss

tab age if unique==1 & br==1, miss
tab age if unique==1 & la==1, miss
